package com.bookshare.service.util;

import com.bookshare.dao.entity.Book;
import com.bookshare.service.model.BookModel;

/**
 * Created by yujia on 16/3/23.
 */
public class ModelConvert {
    public BookModel ConvertToBookModel(Book book){
        BookModel bookModel = new BookModel();
        bookModel.setBookIsbn(book.getBookIsbn());
        bookModel.setBookName(book.getBookName());
        bookModel.setBookAuthor(book.getBookAuthor());
        bookModel.setBookLanguage(book.getBookLanguage());
        bookModel.setBookPublisher(book.getBookPublisher());
        bookModel.setBookClassification(book.getBookClassification());
        return bookModel;
    }
}
